package com.dragon.modules.yuegou.query.member;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragon.modules.yuegou.entity.member.GrowConfigEntity;
import com.dragon.modules.yuegou.mybatis.Condition;
import com.dragon.modules.yuegou.mybatis.Query;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonUnwrapped;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 成长值管理表 动态查询条件
 * 
 * @author pbuilder generated
 * @date 2022-03-07 18:42:10
 * @version 2.0
 */
@JsonInclude(Include.NON_NULL)
public class GrowConfigQuery extends GrowConfigEntity implements Query<GrowConfigEntity> {

    /** id查询条件 */
	@JsonUnwrapped(prefix = "id")
	private Condition<String> idCondition;

    /** 商圈id查询条件 */
	@JsonUnwrapped(prefix = "busdId")
	private Condition<String> busdIdCondition;

    /** 行为Code查询条件 */
	@JsonUnwrapped(prefix = "actionCode")
	private Condition<String> actionCodeCondition;

    /** 行为名称查询条件 */
	@JsonUnwrapped(prefix = "actionName")
	private Condition<String> actionNameCondition;

    /** 赠送成长值查询条件 */
	@JsonUnwrapped(prefix = "giveCount")
	private Condition<Integer> giveCountCondition;

    /** 每日上限（次数）查询条件 */
	@JsonUnwrapped(prefix = "dayMax")
	private Condition<Integer> dayMaxCondition;

    /** 启用状态查询条件 */
	@JsonUnwrapped(prefix = "enableStatus")
	private Condition<Boolean> enableStatusCondition;

    /** 金额查询条件 */
	@JsonUnwrapped(prefix = "price")
	private Condition<BigDecimal> priceCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "createdTime")
	private Condition<LocalDateTime> createdTimeCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "createdBy")
	private Condition<String> createdByCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "modifiedTime")
	private Condition<LocalDateTime> modifiedTimeCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "modifiedBy")
	private Condition<String> modifiedByCondition;

    /** 删除 0-未删除；1-已删除查询条件 */
	@JsonUnwrapped(prefix = "del")
	private Condition<Boolean> delCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "delTime")
	private Condition<LocalDateTime> delTimeCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "delBy")
	private Condition<String> delByCondition;

	/**
	 * 构造一个查询条件对象
	 */
	public GrowConfigQuery() {
		super();
	}

	/**
	 * 依据实体对象构造一个查询条件对象
	 * 
	 * @param entity 实体对象
	 */
	public GrowConfigQuery(GrowConfigEntity entity) {
		super(entity);
	}

	/**
	 * 依据其它查询条件对象的信息构造一个查询条件对象
	 * 
	 * @param other 查询条件对象
	 */
	public GrowConfigQuery(GrowConfigQuery other) {
		super(other);
		if(other.idCondition != null) {
			this.idCondition = other.idCondition.copy();
		}
		if(other.busdIdCondition != null) {
			this.busdIdCondition = other.busdIdCondition.copy();
		}
		if(other.actionCodeCondition != null) {
			this.actionCodeCondition = other.actionCodeCondition.copy();
		}
		if(other.actionNameCondition != null) {
			this.actionNameCondition = other.actionNameCondition.copy();
		}
		if(other.giveCountCondition != null) {
			this.giveCountCondition = other.giveCountCondition.copy();
		}
		if(other.dayMaxCondition != null) {
			this.dayMaxCondition = other.dayMaxCondition.copy();
		}
		if(other.enableStatusCondition != null) {
			this.enableStatusCondition = other.enableStatusCondition.copy();
		}
		if(other.priceCondition != null) {
			this.priceCondition = other.priceCondition.copy();
		}
		if(other.createdTimeCondition != null) {
			this.createdTimeCondition = other.createdTimeCondition.copy();
		}
		if(other.createdByCondition != null) {
			this.createdByCondition = other.createdByCondition.copy();
		}
		if(other.modifiedTimeCondition != null) {
			this.modifiedTimeCondition = other.modifiedTimeCondition.copy();
		}
		if(other.modifiedByCondition != null) {
			this.modifiedByCondition = other.modifiedByCondition.copy();
		}
		if(other.delCondition != null) {
			this.delCondition = other.delCondition.copy();
		}
		if(other.delTimeCondition != null) {
			this.delTimeCondition = other.delTimeCondition.copy();
		}
		if(other.delByCondition != null) {
			this.delByCondition = other.delByCondition.copy();
		}
	}

	@Override
	public QueryWrapper<GrowConfigEntity> toQueryWrapper() {
		QueryWrapper<GrowConfigEntity> wrapper = new QueryWrapper<>(this);
		if (idCondition != null) {
			idCondition.toWrapper(wrapper, COL_ID);
		}
		if (busdIdCondition != null) {
			busdIdCondition.toWrapper(wrapper, COL_BUSD_ID);
		}
		if (actionCodeCondition != null) {
			actionCodeCondition.toWrapper(wrapper, COL_ACTION_CODE);
		}
		if (actionNameCondition != null) {
			actionNameCondition.toWrapper(wrapper, COL_ACTION_NAME);
		}
		if (giveCountCondition != null) {
			giveCountCondition.toWrapper(wrapper, COL_GIVE_COUNT);
		}
		if (dayMaxCondition != null) {
			dayMaxCondition.toWrapper(wrapper, COL_DAY_MAX);
		}
		if (enableStatusCondition != null) {
			enableStatusCondition.toWrapper(wrapper, COL_ENABLE_STATUS);
		}
		if (priceCondition != null) {
			priceCondition.toWrapper(wrapper, COL_PRICE);
		}
		if (createdTimeCondition != null) {
			createdTimeCondition.toWrapper(wrapper, COL_CREATED_TIME);
		}
		if (createdByCondition != null) {
			createdByCondition.toWrapper(wrapper, COL_CREATED_BY);
		}
		if (modifiedTimeCondition != null) {
			modifiedTimeCondition.toWrapper(wrapper, COL_MODIFIED_TIME);
		}
		if (modifiedByCondition != null) {
			modifiedByCondition.toWrapper(wrapper, COL_MODIFIED_BY);
		}
		if (delCondition != null) {
			delCondition.toWrapper(wrapper, COL_DEL);
		}
		if (delTimeCondition != null) {
			delTimeCondition.toWrapper(wrapper, COL_DEL_TIME);
		}
		if (delByCondition != null) {
			delByCondition.toWrapper(wrapper, COL_DEL_BY);
		}
		return wrapper;
	}

	/**
	 * 构造并返回id查询条件
	 * 
	 * @return idCondition id查询条件
	 */
	public Condition<String> id() {
		this.idCondition = new Condition<>();
		return this.idCondition;
	}
	
	/**
	 * 获取id查询条件
	 * 
	 * @return idCondition id查询条件
	 */
	public Condition<String> getIdCondition() {
		return idCondition;
	}

	/**
	 * 设置id查询条件
	 * 
	 * @param idCondition id查询条件
	 */
	public void setIdCondition(Condition<String> idCondition) {
		this.idCondition = idCondition;
	}

	/**
	 * 构造并返回商圈id查询条件
	 * 
	 * @return busdIdCondition 商圈id查询条件
	 */
	public Condition<String> busdId() {
		this.busdIdCondition = new Condition<>();
		return this.busdIdCondition;
	}
	
	/**
	 * 获取商圈id查询条件
	 * 
	 * @return busdIdCondition 商圈id查询条件
	 */
	public Condition<String> getBusdIdCondition() {
		return busdIdCondition;
	}

	/**
	 * 设置商圈id查询条件
	 * 
	 * @param busdIdCondition 商圈id查询条件
	 */
	public void setBusdIdCondition(Condition<String> busdIdCondition) {
		this.busdIdCondition = busdIdCondition;
	}

	/**
	 * 构造并返回行为Code查询条件
	 * 
	 * @return actionCodeCondition 行为Code查询条件
	 */
	public Condition<String> actionCode() {
		this.actionCodeCondition = new Condition<>();
		return this.actionCodeCondition;
	}
	
	/**
	 * 获取行为Code查询条件
	 * 
	 * @return actionCodeCondition 行为Code查询条件
	 */
	public Condition<String> getActionCodeCondition() {
		return actionCodeCondition;
	}

	/**
	 * 设置行为Code查询条件
	 * 
	 * @param actionCodeCondition 行为Code查询条件
	 */
	public void setActionCodeCondition(Condition<String> actionCodeCondition) {
		this.actionCodeCondition = actionCodeCondition;
	}

	/**
	 * 构造并返回行为名称查询条件
	 * 
	 * @return actionNameCondition 行为名称查询条件
	 */
	public Condition<String> actionName() {
		this.actionNameCondition = new Condition<>();
		return this.actionNameCondition;
	}
	
	/**
	 * 获取行为名称查询条件
	 * 
	 * @return actionNameCondition 行为名称查询条件
	 */
	public Condition<String> getActionNameCondition() {
		return actionNameCondition;
	}

	/**
	 * 设置行为名称查询条件
	 * 
	 * @param actionNameCondition 行为名称查询条件
	 */
	public void setActionNameCondition(Condition<String> actionNameCondition) {
		this.actionNameCondition = actionNameCondition;
	}

	/**
	 * 构造并返回赠送成长值查询条件
	 * 
	 * @return giveCountCondition 赠送成长值查询条件
	 */
	public Condition<Integer> giveCount() {
		this.giveCountCondition = new Condition<>();
		return this.giveCountCondition;
	}
	
	/**
	 * 获取赠送成长值查询条件
	 * 
	 * @return giveCountCondition 赠送成长值查询条件
	 */
	public Condition<Integer> getGiveCountCondition() {
		return giveCountCondition;
	}

	/**
	 * 设置赠送成长值查询条件
	 * 
	 * @param giveCountCondition 赠送成长值查询条件
	 */
	public void setGiveCountCondition(Condition<Integer> giveCountCondition) {
		this.giveCountCondition = giveCountCondition;
	}

	/**
	 * 构造并返回每日上限（次数）查询条件
	 * 
	 * @return dayMaxCondition 每日上限（次数）查询条件
	 */
	public Condition<Integer> dayMax() {
		this.dayMaxCondition = new Condition<>();
		return this.dayMaxCondition;
	}
	
	/**
	 * 获取每日上限（次数）查询条件
	 * 
	 * @return dayMaxCondition 每日上限（次数）查询条件
	 */
	public Condition<Integer> getDayMaxCondition() {
		return dayMaxCondition;
	}

	/**
	 * 设置每日上限（次数）查询条件
	 * 
	 * @param dayMaxCondition 每日上限（次数）查询条件
	 */
	public void setDayMaxCondition(Condition<Integer> dayMaxCondition) {
		this.dayMaxCondition = dayMaxCondition;
	}

	/**
	 * 构造并返回启用状态查询条件
	 * 
	 * @return enableStatusCondition 启用状态查询条件
	 */
	public Condition<Boolean> enableStatus() {
		this.enableStatusCondition = new Condition<>();
		return this.enableStatusCondition;
	}
	
	/**
	 * 获取启用状态查询条件
	 * 
	 * @return enableStatusCondition 启用状态查询条件
	 */
	public Condition<Boolean> getEnableStatusCondition() {
		return enableStatusCondition;
	}

	/**
	 * 设置启用状态查询条件
	 * 
	 * @param enableStatusCondition 启用状态查询条件
	 */
	public void setEnableStatusCondition(Condition<Boolean> enableStatusCondition) {
		this.enableStatusCondition = enableStatusCondition;
	}

	/**
	 * 构造并返回金额查询条件
	 * 
	 * @return priceCondition 金额查询条件
	 */
	public Condition<BigDecimal> price() {
		this.priceCondition = new Condition<>();
		return this.priceCondition;
	}
	
	/**
	 * 获取金额查询条件
	 * 
	 * @return priceCondition 金额查询条件
	 */
	public Condition<BigDecimal> getPriceCondition() {
		return priceCondition;
	}

	/**
	 * 设置金额查询条件
	 * 
	 * @param priceCondition 金额查询条件
	 */
	public void setPriceCondition(Condition<BigDecimal> priceCondition) {
		this.priceCondition = priceCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return createdTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> createdTime() {
		this.createdTimeCondition = new Condition<>();
		return this.createdTimeCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return createdTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> getCreatedTimeCondition() {
		return createdTimeCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param createdTimeCondition 查询条件
	 */
	public void setCreatedTimeCondition(Condition<LocalDateTime> createdTimeCondition) {
		this.createdTimeCondition = createdTimeCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return createdByCondition 查询条件
	 */
	public Condition<String> createdBy() {
		this.createdByCondition = new Condition<>();
		return this.createdByCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return createdByCondition 查询条件
	 */
	public Condition<String> getCreatedByCondition() {
		return createdByCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param createdByCondition 查询条件
	 */
	public void setCreatedByCondition(Condition<String> createdByCondition) {
		this.createdByCondition = createdByCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return modifiedTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> modifiedTime() {
		this.modifiedTimeCondition = new Condition<>();
		return this.modifiedTimeCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return modifiedTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> getModifiedTimeCondition() {
		return modifiedTimeCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param modifiedTimeCondition 查询条件
	 */
	public void setModifiedTimeCondition(Condition<LocalDateTime> modifiedTimeCondition) {
		this.modifiedTimeCondition = modifiedTimeCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return modifiedByCondition 查询条件
	 */
	public Condition<String> modifiedBy() {
		this.modifiedByCondition = new Condition<>();
		return this.modifiedByCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return modifiedByCondition 查询条件
	 */
	public Condition<String> getModifiedByCondition() {
		return modifiedByCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param modifiedByCondition 查询条件
	 */
	public void setModifiedByCondition(Condition<String> modifiedByCondition) {
		this.modifiedByCondition = modifiedByCondition;
	}

	/**
	 * 构造并返回删除 0-未删除；1-已删除查询条件
	 * 
	 * @return delCondition 删除 0-未删除；1-已删除查询条件
	 */
	public Condition<Boolean> del() {
		this.delCondition = new Condition<>();
		return this.delCondition;
	}
	
	/**
	 * 获取删除 0-未删除；1-已删除查询条件
	 * 
	 * @return delCondition 删除 0-未删除；1-已删除查询条件
	 */
	public Condition<Boolean> getDelCondition() {
		return delCondition;
	}

	/**
	 * 设置删除 0-未删除；1-已删除查询条件
	 * 
	 * @param delCondition 删除 0-未删除；1-已删除查询条件
	 */
	public void setDelCondition(Condition<Boolean> delCondition) {
		this.delCondition = delCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return delTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> delTime() {
		this.delTimeCondition = new Condition<>();
		return this.delTimeCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return delTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> getDelTimeCondition() {
		return delTimeCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param delTimeCondition 查询条件
	 */
	public void setDelTimeCondition(Condition<LocalDateTime> delTimeCondition) {
		this.delTimeCondition = delTimeCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return delByCondition 查询条件
	 */
	public Condition<String> delBy() {
		this.delByCondition = new Condition<>();
		return this.delByCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return delByCondition 查询条件
	 */
	public Condition<String> getDelByCondition() {
		return delByCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param delByCondition 查询条件
	 */
	public void setDelByCondition(Condition<String> delByCondition) {
		this.delByCondition = delByCondition;
	}

}
